/*
 * To change this template, choose Tools | Templates and open the template in
 * the editor.
 */
package SteamEngineFX.Config;

import javafx.scene.Scene;
import javafx.stage.Modality;
import javafx.stage.Stage;
import javafx.stage.StageStyle;
import SteamEngineFX.AppConst;
import SteamEngineFX.Config.Layouts.ConfigPane;

/**
 *
 * @author jbendixsen
 */
public class Config extends Stage{

    private Scene scene = null;
    private ConfigPane root = null;
    
    public Config(StageStyle ss) {
        super(ss);
        init();
    }

    public Config() {
        init();
    }
    
    private void init(){
        
        root = new ConfigPane();        
        
        scene = new Scene(root, 640, 480);
        scene.getStylesheets().addAll(AppConst.defaultStyleSheet);
        
        centerOnScreen();
        
        setTitle("Configuration");
        
        setScene(scene);
        
        
//        Text text = new Text(20, 110, "JavaFX");
//        text.setFill(Color.DODGERBLUE);
//        text.setEffect(new Lighting());
//        text.setFont(Font.font(Font.getDefault().getFamily(), 50));
        
//        rootGroup.getChildren().add(text);
        
        initModality(Modality.APPLICATION_MODAL);
        
    }
    
    public void ShowConfig(){
        show();
        
    }
    
    
}
